package com.ruoyi.web.controller.sea;/**
 * @author 李国臻
 * @date 2025/7/7 11:54
 */

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.web.domain.SeaData;
import com.ruoyi.web.service.ISeaDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Description
 *
 * @author 李国臻
 * @date 2025-07-07 11:54
 */
@RestController
@RequestMapping("/seaData")
public class SeaDataController extends BaseController {

    @Autowired
    private ISeaDataService seaDataService;
    @RequestMapping("/buyoData")
    public SeaData buyoData(SeaData seaData){
        return seaDataService.selectBuyoData(seaData);
    }

    @RequestMapping("/tabQIWEData")
    public SeaData tabQIWEData(SeaData seaData){
        return seaDataService.selectTabQIWEData(seaData);
    }

    @RequestMapping("/tabQIWEDataForTime")
    public List<SeaData> tabQIWEDataForTime(SeaData seaData){
        if(seaData.getSearchDate()!=null){
            List<SeaData> seaDatas = seaDataService.selectTabQIWEDataForTime(seaData);
            return seaDatas;
        }else{
            return null;
        }
    }

    @RequestMapping("/tabQIYAData")
    public SeaData tabQIYAData(SeaData seaData){
        return seaDataService.selectTabQIYAData(seaData);
    }
    @RequestMapping("/tabQIYADataForTime")
    public List<SeaData> tabQIYADataForTime(SeaData seaData){
        return seaDataService.selectTabQIYADataForTime(seaData);
    }


    @RequestMapping("/tabSHDUData")
    public SeaData tabSHDUData(SeaData seaData){
        return seaDataService.selectTabSHDUData(seaData);
    }

    @RequestMapping("/tabSHDUDataForTime")
    public List<SeaData> tabSHDUDataForTime(SeaData seaData){
        return seaDataService.selectTabSHDUDataForTime(seaData);
    }


    @RequestMapping("/tabFGALData")
    public SeaData tabFGALData(SeaData seaData){
        return seaDataService.selectTabFGALData(seaData);
    }

    @RequestMapping("/tabFGALDataForTime")
    public List<SeaData> tabFGALDataForTime(SeaData seaData){
        return seaDataService.selectTabFGALDataForTime(seaData);
    }

    @RequestMapping("/tabSHZHData")
    public SeaData tabSHZHData(SeaData seaData){
        return seaDataService.selectTabSHZHData(seaData);
    }

    @RequestMapping("/tabSHZHDataForTime")
    public List<SeaData> tabSHZHDataForTime(SeaData seaData){
        return seaDataService.selectTabSHZHDataForTime(seaData);
    }

    @RequestMapping("/tabBLOGData")
    public SeaData tabBLOGData(SeaData seaData){
        return seaDataService.selectTabBLOGData(seaData);
    }

    @RequestMapping("/tabBLOGDataForTime")
    public List<SeaData> tabBLOGDataForTime(SeaData seaData){
        return seaDataService.selectTabBLOGDataTime(seaData);
    }

}
